import { Request} from "./request";
interface loginParams {
    phoneNum:string,
    password:string
}
// 获取各户接口
interface customer {
    page:string,
    size:string,
    type:string,
    worker_id:string
}
// 客户
type self_customer={
    branch_id:string,
    worker_name:string
}
// 客户详细信息
type user_type={
    name:string
}
// 产品列表

class api {
    public static login = {
        genre:(data:loginParams):any=>{
            return Request.post("/login/CrmLogin",data)
        }
    }
    public static get_customerapi={
        test:(data:customer):any=>{
            return Request.post("/admin/ClientManagementList",data)
        },
        self_test:(data:self_customer):any=>{
            return Request.post("/user/UserList",data)
        },
        getUser:(data:user_type):any=>{
            return Request.post("/admin/ClientManagementList",data)
        },
        getProduct:():any=>{
            
        }
    }
}
export default api